package com.ac.app.web.action.invest;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import com.ac.app.dm.PickInvest;
import com.ac.app.web.view.PickInvestView;
import com.caac.core.web.action.BaseAction;
import com.caac.core.web.form.BaseForm;

public class ViewPickInvestAction extends BaseAction {

	protected ActionForward doExecute(ActionMapping mapping, BaseForm form,
			HttpServletRequest request, HttpServletResponse response)
			throws Exception {
		
		String id=request.getParameter("id");
    	PickInvest dm=(PickInvest)this.getBaseManager().getObjectById(PickInvest.class, id);
    	PickInvestView dmView=new PickInvestView();
    	dmView.setPickInvest(dm);
    	request.setAttribute("dmView", dmView);
        return forward(mapping);
	}

}
